Skip to content

[tool] Grammar weight calculator #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tysmith opened this issue Jul 19, 2016 · 0 comments
Open

[tool] Grammar weight calculator #3

tysmith opened this issue Jul 19, 2016 · 0 comments

Comments

@tysmith
Copy link
Collaborator

tysmith commented Jul 19, 2016

Grammar files can get big and complicated and it can be hard to understand weight values once they are nested in other choices and/or when then have multiple entries that have a large variance in weight. Importing library grammars and also add to complexity.

This tool is meant to help the grammar author understand the output of the grammar. The weight calculator would be used to help calculate the weight of symbols in different contexts to allow the creator to sanity check and tweak the values.

Example features could include:

  • average number of iterations to cover all symbols
  • average number of iterations to cover symbol from context of another
  • calculate the weight of a certain symbol from the context of another
  • what is does the average/most common symbol selection look like
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants